<template>
  <div>孙组件---{{ moneyXxx }}</div>
  <button @click="setFn(10)">修改money</button>
</template>
<script setup>
import { inject } from 'vue'
const moneyXxx = inject('money')
const setFn = inject('setMoney')
</script>
<style></style>
